guint32 metadata_len;
guint32 version, uid, gid, mode;
guint64 content_len;
- gsize bytes_read, bytes_written;
- int temp_fd = -1;
+ gsize bytes_read;
file = ot_util_new_file_for_path (path);
gboolean ret = FALSE;
GString *tempfile_path = NULL;
GChecksum *checksum = NULL;
- struct stat stbuf;
gboolean did_exist;
tempfile_path = g_string_new (priv->path);
{ NULL }
};
+static char *
+get_tmpdir (void) G_GNUC_UNUSED;
+
static char *
get_tmpdir (void)
{
return ret;
}
+static gboolean
+open_log (const char *name,
+ GOutputStream **out_log,
+ GError **error) G_GNUC_UNUSED;
+
static gboolean
open_log (const char *name,
GOutputStream **out_log,
{
GOptionContext *context;
gboolean ret = FALSE;
- char *tmpdir;
context = g_option_context_new ("- Build current directory");
g_option_context_add_main_entries (context, options, NULL);
GPtrArray *make_args;
GPtrArray *makeinstall_args;
GPtrArray *args;
- int i;
char **subprocess_env;
- GError *error = NULL;
g_type_init ();
const char *autogen;
char **autogen_env;
- autogen = find_first_file (G_FILE_TEST_IS_EXECUTABLE, "./autogen", "./autogen.sh");
+ autogen = find_first_file (G_FILE_TEST_IS_EXECUTABLE, "./autogen", "./autogen.sh", NULL);
if (!autogen)
ot_util_fatal_literal ("No executable configure or autogen script found");
const char *commit;
const char *destination;
GFile *destf = NULL;
- int i;
context = g_option_context_new ("COMMIT DESTINATION - Check out a commit into a filesystem tree");
g_option_context_add_main_entries (context, options, NULL);
#include <glib/gi18n.h>
-static char *repo_path;
-
static GOptionEntry options[] = {
{ NULL }
};